<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <script src="lib/jquery.min.js"></script>
    <script src="kindeditor-all-min.js" charset="utf-8"></script>
    <script src="lang/zh-CN.js" charset="utf-8"></script>
<body>

    <textarea id="editor_id" name="content" style="width:700px;height:300px;">HTML内容</textarea>

    <br><div><button id="btn">console输入HTML内容</button></div>

    <script>
        $('#btn').click(function(){
            console.log(window.editor.html());
        });
    </script>
    <script>
        KindEditor.ready(function(KE) {
            window.editor = KE.create('#editor_id');
            var options = {
                filterMode : false  //关闭过滤模式，保留所有标签
            };
            var editor = KE.create('textarea[name="content"]', options);
        });
    </script>

</body>
</html>

